package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

/**
 * @Author:王正浩
 * @Date 2022 07 19 18 37
 **/
public interface DishService extends IService<Dish> {

    //新增菜品,同时插入菜品对应的口味,操做两张表
    public void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品喜喜和口味信息
    public DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);
}
